package br.ufu.facom.pillbox.domain;

import java.io.Serializable;

import br.ufu.facom.calendar.DateTimeHandler;
import android.widget.DatePicker;
import android.widget.TimePicker;

public class Agenda implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private Long id;
	private String tm = "";
	private String medic = "";
	private String dtIni = "";
	private String dtFim = "";
	private String dtNot = "";
	private String tmNot = "";
	private String tipo = "";
	public String getTipo() {
		return tipo;
	}

	public void setTipo(String tipo) {
		this.tipo = tipo;
	}

	private boolean onDisk;

	public void setDTIni(String dt) {
		this.dtIni = dt;
	}

	public void setDTFim(String dt) {
		this.dtFim = dt;
	}

	public void setDTNot(String dt) {
		this.dtNot = dt;
	}

	public void setTMNot(String tm) {
		this.tmNot = tm;
	}

	public void setTM(String tm) {
		this.tm = tm;
	}

	public boolean isOnDisk() {
		return onDisk;
	}

	public void setOnDisk(boolean onDisk) {
		this.onDisk = onDisk;
	}

	public void setDTIni(DatePicker datePicker) {
		this.dtIni = DateTimeHandler.datePicker2String(datePicker);
	}

	public void setDTFim(DatePicker datePicker) {
		this.dtFim = DateTimeHandler.datePicker2String(datePicker);
	}

	public void setDTNot(DatePicker datePicker) {
		this.dtNot = DateTimeHandler.datePicker2String(datePicker);
	}

	public void setTMNot(TimePicker timePicker) {
		this.tmNot = DateTimeHandler.timePicker2String(timePicker);
	}

	public void setTM(TimePicker timePicker) {
		this.dtFim = DateTimeHandler.timePicker2String(timePicker);
	}

	public void setMedic(String medic) {
		this.medic = medic;
	}

	public String getDTIni() {
		return this.dtIni;
	}

	public String getDTFim() {
		return this.dtFim;
	}

	public String getDTNot() {
		return this.dtNot;
	}

	public String getTMNot() {
		return this.tmNot;
	}

	public String getTM() {
		return this.tm;
	}

	public void updateDTIni(DatePicker datePicker) {
		DateTimeHandler.string2DatePicker(datePicker, this.dtIni);
	}

	public void updateDTFim(DatePicker datePicker) {
		DateTimeHandler.string2DatePicker(datePicker, this.dtFim);
	}

	public void updateDTNot(DatePicker datePicker) {
		DateTimeHandler.string2DatePicker(datePicker, this.dtNot);
	}

	public void updateTMNot(TimePicker timePicker) {
		DateTimeHandler.string2TimePicker(timePicker, this.tmNot);
	}

	public void updateTM(TimePicker timePicker) {
		DateTimeHandler.string2TimePicker(timePicker, this.tm);
	}

	public String getMedic() {
		return this.medic;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}
